import {
  request
} from './wxRequest';

// export let urlBase_d = 'http://www.scyphr.com/api';
export let urlBase_d = 'https://wechat.scyphr.com';
// export let urlBase_d = 'http://192.168.1.33:9096/api';

export const login_d = function (params,fun,header) {request(urlBase_d+'/app/device/exchange',params,fun,header,'GET')};//登陆
export const weather_d = function (params,fun,header) {request(urlBase_d+'/app/device/weather/query?token='+wx.getStorageSync("token_d"),params,fun,header,'POST')};//气象站列表
export const weather_detail = function (params,fun,header) {request(urlBase_d+'/app/device/wheather/info?token='+wx.getStorageSync("token_d"),params,fun,header,'GET')};//气象站详情
export const equList = function (params,fun,header) {request(urlBase_d+'/app/device/query?token='+wx.getStorageSync("token_d"),params,fun,header,'POST')};//虫情检测列表
export const photoList = function (params,fun,header) {request(urlBase_d+'/app/device/find?token='+wx.getStorageSync("token_d"),params,fun,header,'POST')};//图片列表
export const pulldown = function (params,fun,header) {request(urlBase_d+'/app/device/device/pulldown?token='+wx.getStorageSync("token_d"),params,fun,header,'GET')};//虫情设备下拉
